package algorithmTest;

import lombok.Data;

/**
 * @Author: zhiping
 * @ClassName LoopList
 * @Date:2018/9/8 22:30
 * @Description: 判断单链表是否存在环
 */
public class LoopList {
    public static void main(String[] args) {

    }



    private static Node fastandslow(){

        return null;
    }






}
/**
 * @Author: zhiping
 * @ClassName Node
 * @Date:2018/9/8 22:30
 * @Description: 链表节点定义
 */
@Data
class Node{
    private int key;
    private Node next;

}